/*
2, 3.4 的最大值是: 3.4
a, c的最大值是: 2
a, 100的最大值是: 100
 */

#include <iostream>
using namespace std;
template <typename T>
T Max(T a, T b){
	return a>b?a:b;
}
int main(void){
	double a = 2, b = 3.4;
	float c = 1.1, d = 2.2;
	cout << "2, 3.4 的最大值是: " << Max(a,b) << endl;
	cout << "a, c的最大值是: "  << Max<double>(a,c) << endl;
	cout << "a, 100的最大值是: " << Max<double>(a,100) << endl;
	return 0;
}
